package com.peace.hospital.entity.hospitalization.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 医院员工信息表
 * </p>
 *
 * @author xie
 * @since 2019-11-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Staffinfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "staid", type = IdType.AUTO)
    private Integer staid;      // 员工编号

    private Integer depid;      //科室id

    private String stasex;      //性别

    private Integer staage;     //员工年龄

    private LocalDate stabir;   //出生日期

    private String staaddress;  //家庭住址

    private String statel;      //电话

    private String stadbsource; //数据库名称

    private String staname;     //员工姓名

    private String stanstate;   //员工状态

    private String stapassword; //密码

    private String stajobnumber;    //工号


    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getStaid() {
        return staid;
    }

    public void setStaid(Integer staid) {
        this.staid = staid;
    }

    public Integer getDepid() {
        return depid;
    }

    public void setDepid(Integer depid) {
        this.depid = depid;
    }

    public String getStasex() {
        return stasex;
    }

    public void setStasex(String stasex) {
        this.stasex = stasex;
    }

    public Integer getStaage() {
        return staage;
    }

    public void setStaage(Integer staage) {
        this.staage = staage;
    }

    public LocalDate getStabir() {
        return stabir;
    }

    public void setStabir(LocalDate stabir) {
        this.stabir = stabir;
    }

    public String getStaaddress() {
        return staaddress;
    }

    public void setStaaddress(String staaddress) {
        this.staaddress = staaddress;
    }

    public String getStatel() {
        return statel;
    }

    public void setStatel(String statel) {
        this.statel = statel;
    }

    public String getStadbsource() {
        return stadbsource;
    }

    public void setStadbsource(String stadbsource) {
        this.stadbsource = stadbsource;
    }

    public String getStaname() {
        return staname;
    }

    public void setStaname(String staname) {
        this.staname = staname;
    }

    public String getStanstate() {
        return stanstate;
    }

    public void setStanstate(String stanstate) {
        this.stanstate = stanstate;
    }

    public String getStapassword() {
        return stapassword;
    }

    public void setStapassword(String stapassword) {
        this.stapassword = stapassword;
    }

    public String getStajobnumber() {
        return stajobnumber;
    }

    public void setStajobnumber(String stajobnumber) {
        this.stajobnumber = stajobnumber;
    }

    @Override
    public String toString() {
        return "Staffinfo{" +
                "staid=" + staid +
                ", depid=" + depid +
                ", stasex='" + stasex + '\'' +
                ", staage=" + staage +
                ", stabir=" + stabir +
                ", staaddress='" + staaddress + '\'' +
                ", statel='" + statel + '\'' +
                ", stadbsource='" + stadbsource + '\'' +
                ", staname='" + staname + '\'' +
                ", stanstate='" + stanstate + '\'' +
                ", stapassword='" + stapassword + '\'' +
                ", stajobnumber='" + stajobnumber + '\'' +
                '}';
    }
}
